#set(jstree = true)

#@mgtlayout()
#define header()
<div class="r-row r-rsps r-p">
  <div class="r-col-9">
    <div class="r-row r-rsps">
      <div class="r-col-1">
        <select class="g-control" id="comLevel" name="level"> #for(lv : LevelddlSource)
          <option value="#(lv.value)">#(lv.text)</option>
          #end </select>
      </div>
      <div class="r-col-4 r-p-sm">
        <input type="text" class="r-ui r-col-6" id="txtSearch" data-r-opts="{mode: 'search',tip:'搜索名称'}" />
      </div>
    </div>
    <input type="hidden" id="hidParentid" name="parentId" value="0"/>
    <!--<input type="hidden" id="hidParentcustomidEdit" name="parentcustomid"/>-->
    <input type="hidden" id="parentname"  value="此项为顶级"/>
  </div>
</div>
#end
#define main()
<div class="r-flex r-full-h r-p r-border-box">
  <div class="r-m-r-sm" style="width: 20.83333333333333em;">
    <div>
      <button type="button" data-r-opts="{icon:'fa-plus'}" class="r-ui" id="btnOpenAllTree"></button>
      <button type="button" data-r-opts="{icon:'fa-minus'}" class="r-ui" id="btnCloseAllTree"></button>
    </div>
    <div class="r-m-t" style="overflow:auto;height: 90%;">
      <div id="treeCode"></div>
    </div>
  </div>
  <div class="r-flex-item r-overflow-hide r-full-h">
    <div id="grd"></div>
  </div>
</div>
#end

#define js()
<script>
    (function() {
        rapid(function() {
          rapid("#comLevel").data("comSource", #(LevelEmunSource));
        });
    })();
</script>
#(yx.js("/script/pc/sysmgt/infrastructure/code/index.js"))#end